<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        body {
            background-color: #333;
        }
        div {
            width: 200px;
            height: 100px;
            background-image: url(./img/bear.png);
            animation: run 0.3s steps(8) infinite,move 2s linear forwards;
        }
        @keyframes run {
            0% {}
            100% {
                background-position: -1600px 0;
            }
        }
        @keyframes move {
            0% {}
            100% {
                transform: translateX(500px);
            }
        }
        
    </style>
</head>
<body>
    <div></div>
</body>
</html>